import { TriggerNode, TriggerEdge } from "@src/modules/trigger/model";
import { TriggerExecuteWayType } from "@src/modules/trigger/types";

// 触发器的方式
export interface TriggerExecuteWay {
    way: TriggerExecuteWayType, // 具体触发方式，
    wayName?: string, // 触发名称
    options: Record<string, any> // 配置数据
}

export interface TriggerFlowData {
    id?: string,
    name: string,
    remarks?: string,
    executeWay: TriggerExecuteWay,
    startNode: TriggerNode,
    nodeList: TriggerNode [],
    lineList: TriggerEdge []
}